

const toast={
  success:(title='提交成功',duration=1000,mask=true)=>{
    uni.showToast({
      title,
      duration,
      mask
    })
  },
  info:(title='',duration=1000,mask=false)=>{
    uni.showToast({
      title,
      icon:'none',
      duration,
      mask
    })
  },
  loading:(title='加载中...',mask=true,duration=5000)=>{
    uni.showToast({
      title,
      icon:'loading',
      duration:duration,
      mask
    })
  },
  hide(){
    uni.hideToast()
  }
}



export default toast;
